package de.justphil.tcg.tcgserver.commons.logging;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class TCGLogging {
	
	private static final String MIDDLEWARE			= "m";
	private static final String MIDDLEWARE_STATUS	= "m.s";
	private static final String REST				= "r";
	private static final String GAME				= "g";
	private static final String WS_BALANCER			= "wsb";
	
	public static Logger logger(Class<?> clazz) {
		return LoggerFactory.getLogger(MIDDLEWARE + "." + clazz.getSimpleName());
	}
	
	public static Logger statusLogger(Class<?> clazz) {
		return LoggerFactory.getLogger(MIDDLEWARE_STATUS + "." + clazz.getSimpleName());
	}
	
	public static Logger restLogger(Class<?> clazz) {
		return LoggerFactory.getLogger(REST + "." + clazz.getSimpleName());
	}
	
	public static Logger gameLogger(Class<?> clazz) {
		return LoggerFactory.getLogger(GAME + "." + clazz.getSimpleName());
	}
	
	public static Logger wsBalancerLogger(Class<?> clazz) {
		return LoggerFactory.getLogger(WS_BALANCER + "." + clazz.getSimpleName());
	}
}
